package com.lxq.live.pojo;


import com.google.gson.annotations.SerializedName;

import javax.persistence.*;

@Entity(name = "words")
public class WordPOJO {

    /**
     * word : automatic
     * accent : /ˌɔːtəˈmætɪk/
     * mean_cn : adj. 自动的；无意识的；  n. 自动手枪
     * mean_en : (of a machine, device, etc.) having controls that work without needing a person to operate them
     * sentence : The automatic production line improves the working efficiency greatly.
     * sentence_trans : 自动化生产线大大地提高了工作效率。
     * sentence_phrase : The automatic production line
     * word_etyma : autom=auto，autom自动 + atic有…性质的 → automatic自动的，机械的
     */

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;
    private String word;
    private String accent;
    @SerializedName("mean_cn")
    @Column(columnDefinition = "TEXT")
    private String meanCN;
    @SerializedName("mean_en")
    @Column(columnDefinition = "TEXT")
    private String meanEN;
    private String sentence;
    @SerializedName("sentence_trans")
    @Column(columnDefinition = "TEXT")
    private String sentenceTrans;
    @SerializedName("sentence_phrase")
    @Column(columnDefinition = "TEXT")
    private String sentencePhrase;
    @SerializedName("word_etyma")
    private String wordEtyma;

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public String getAccent() {
        return accent;
    }

    public void setAccent(String accent) {
        this.accent = accent;
    }

    public String getMeanCN() {
        return meanCN;
    }

    public void setMeanCN(String meanCN) {
        this.meanCN = meanCN;
    }

    public String getMeanEN() {
        return meanEN;
    }

    public void setMeanEN(String meanEN) {
        this.meanEN = meanEN;
    }

    public String getSentence() {
        return sentence;
    }

    public void setSentence(String sentence) {
        this.sentence = sentence;
    }

    public String getSentenceTrans() {
        return sentenceTrans;
    }

    public void setSentenceTrans(String sentenceTrans) {
        this.sentenceTrans = sentenceTrans;
    }

    public String getSentencePhrase() {
        return sentencePhrase;
    }

    public void setSentencePhrase(String sentencePhrase) {
        this.sentencePhrase = sentencePhrase;
    }

    public String getWordEtyma() {
        return wordEtyma;
    }

    public void setWordEtyma(String wordEtyma) {
        this.wordEtyma = wordEtyma;
    }

    @Override
    public String toString() {
        return "WordPOJO{" +
                "word='" + word + '\'' +
                ", accent='" + accent + '\'' +
                ", meanCN='" + meanCN + '\'' +
                ", meanEN='" + meanEN + '\'' +
                ", sentence='" + sentence + '\'' +
                ", sentenceTrans='" + sentenceTrans + '\'' +
                ", sentencePhrase='" + sentencePhrase + '\'' +
                ", wordEtyma='" + wordEtyma + '\'' +
                '}';
    }
}
